package com.example.server.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.server.bean.Employee;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 别怿言
 * @since 2023-02-03
 */
public interface EmployeeDao extends BaseMapper<Employee> {

    IPage<Employee> getEmloyeeByPage(Page<Employee> page, @Param("employee") Employee employee,
                                     @Param("beginDateScope")LocalDate[] beginDateScope);

    Integer maxWorkId();

    List<Employee> getEmployee(Integer id);

    IPage<Employee> getEmloyeeWithSalary(Page<Employee> page);
}
